const { defineConfig } = require("@vue/cli-service");
const path = require("path");
const resolve = (dir) => path.join(__dirname, dir);

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    open: true,
    proxy: {
      "/api/squared": {
        target: "http://192.168.2.199:8088",
        pathRewrite: {
          "^/api/": "",
        },
      },
    },
  },
  lintOnSave: false,
  chainWebpack(config) {
    config.resolve.alias.set("@", resolve("/src"));
    // config.devtool = 'source-map';
  },
});
